/*****************************************************************************
 *  This file is part of the OpenDomo project.
 *  Copyright(C) 2012 OpenDomo Services SL
 *  
 *  Daniel Lerch Hostalot <dlerch@opendomo.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *****************************************************************************/



#include <gtk/gtk.h>

#ifndef __LINKS_WIDGETS_H__
#define __LINKS_WIDGETS_H__

typedef struct link_selector_widgets_t link_selector_widgets_t;
struct link_selector_widgets_t
{
	char type_selected[32];
	GtkWidget *opt;	
	GtkWidget *menu;	
	GtkWidget *item1;	
	GtkWidget *item2;	
	GtkWidget *item3;	
	GtkWidget *item4;	
	GtkWidget *item5;	

	char sp_selected[32];
	GtkWidget *sp_opt;	
	GtkWidget *sp_menu;	
	GtkWidget *sp_item[32];	

	char dp_selected[32];
	GtkWidget *dp_opt;	
	GtkWidget *dp_menu;	
	GtkWidget *dp_item[24];	
};

void link_type_select(link_selector_widgets_t *lsw, const char* txt);

void link_sport_select(link_selector_widgets_t *lsw, const char* txt);

void link_dport_select(link_selector_widgets_t *lsw, const char* txt);

void link_widgets_create(
	link_selector_widgets_t *lsw, GtkWidget *parent, int x, int y);

#endif
